var timer={
    seconds:0,
    start(){
        setInterval(()=>{
            this.seconds++
        },1000)
    },
};
timer.start();
setTimeout(function () {
    console.log(timer.seconds);
},3500);